all: run report

run: 
	g++ -g -fdiagnostics-color=always test1.cpp NewtonInterpolation.cpp -o test1.exe
	./test1.exe
	g++ -g -fdiagnostics-color=always 2B.cpp NewtonInterpolation.cpp -o 2B.exe
	./2B.exe
	python3 2B.py
	g++ -g -fdiagnostics-color=always 2C.cpp NewtonInterpolation.cpp -o 2C.exe
	./2C.exe
	python3 2C.py
	g++ -g -fdiagnostics-color=always 2D.cpp HermiteInterpolation.cpp -o 2D.exe
	./2D.exe
	g++ -g -fdiagnostics-color=always 2E.cpp NewtonInterpolation.cpp -o 2E.exe
	./2E.exe
	g++ -g -fdiagnostics-color=always 2F.cpp Bezier.cpp -o 2F.exe
	./2F.exe
	python3 2F.py

report:
	pdflatex report2.tex

clean:
	rm -f *.exe */*.png */*.txt *.pdf *.bib *.aux *.log